home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / initrd.lz / initrd / scripts / casper-premount / 20iso_scan < prev    next >
Encoding:
Text File  |  2009-10-28  |  1.1 KB  |  46 lines

  1. #!/bin/sh
  2.  
  3. PREREQ=""
  4. . /scripts/casper-functions
  5.  
  6. prereqs()
  7. {
  8.        echo "$PREREQ"
  9. }
  10.  
  11. case $1 in
  12. # get pre-requisites
  13.     prereqs)
  14.            prereqs
  15.            exit 0
  16.            ;;
  17. esac
  18.  
  19. . /scripts/lupin-helpers
  20. iso_path=
  21. for x in $(cat /proc/cmdline); do
  22.     case ${x} in
  23.         iso-scan/filename=*)
  24.             iso_path=${x#iso-scan/filename=}
  25.             ;;
  26.     esac
  27. done
  28. if [ "$iso_path" ]; then
  29.     if find_path "${iso_path}" /isodevice rw; then
  30.         echo "LIVEMEDIA=${FOUNDPATH}" >> /conf/param.conf
  31.         if [ -f "${FOUNDPATH}" ]; then
  32.             echo "LIVEMEDIA_OFFSET=0" >> /conf/param.conf
  33.         fi
  34.     else
  35.         panic "
  36. Could not find the ISO $iso_path
  37. This could also happen if the file system is not clean because of an operating
  38. system crash, an interrupted boot process, an improper shutdown, or unplugging
  39. of a removable device without first unmounting or ejecting it.  To fix this,
  40. simply reboot into Windows, let it fully start, log in, run 'chkdsk /r', then
  41. gracefully shut down and reboot back into Windows. After this you should be
  42. able to reboot again and resume the installation.
  43. "
  44.     fi
  45. fi
  46.